package reflectionAndDynamic;

/**
 * @author ganeshT
 */
public class CallingClassUtil {
	public void GivesNameOfCallingClass() {
		String className = "";
		String function ="";
		try {
			throw new Exception("Error");
		} catch (Exception e) {
			className = e.getStackTrace()[1].getClassName();
			function=e.getStackTrace()[1].getMethodName();
		}
	}
}
